package cn.iocoder.yudao.module.design.convert.relatived;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.relatived.vo.RelativedCreateReqVO;
import cn.iocoder.yudao.module.design.controller.admin.relatived.vo.RelativedExcelVO;
import cn.iocoder.yudao.module.design.controller.admin.relatived.vo.RelativedRespVO;
import cn.iocoder.yudao.module.design.controller.admin.relatived.vo.RelativedUpdateReqVO;
import cn.iocoder.yudao.module.design.dal.dataobject.relatived.RelativedDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 关联人 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface RelativedConvert {

    RelativedConvert INSTANCE = Mappers.getMapper(RelativedConvert.class);

    RelativedDO convert(RelativedCreateReqVO bean);

    RelativedDO convert(RelativedUpdateReqVO bean);

    RelativedRespVO convert(RelativedDO bean);

    List<RelativedRespVO> convertList(List<RelativedDO> list);

    PageResult<RelativedRespVO> convertPage(PageResult<RelativedDO> page);

    List<RelativedExcelVO> convertList02(List<RelativedDO> list);

}
